package com.twu.biblioteca.command;

import com.twu.biblioteca.BibliotecaSystem;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 5/21/13
 * Time: 3:29 PM
 * To change this template use File | Settings | File Templates.
 */
public class CommandFactory {

    public static Command generateCommand(BibliotecaSystem system, int input) {
        Command command = null;

        switch (input) {
            case 0:
                break;
            case 1:
                command = new ListBooksCommand();
                break;
            case 2:
                command = new ReserveCommand(system);
                break;
            case 3:
                command = new CheckMembershipCommand(system);
                break;
            case 4:
                command = new ListMoviesCommand();
                break;
            case 5:
                command = new LoginCommand(system);
                break;
            default:
                command = new NotifyCommand();
                break;
        }
        return command;
    }
}
